package com.wwe.kotlinstudy.dm.three

class ThreadSafeLanHanKotlin private constructor(){

    companion object {
        private var instance: ThreadSafeLanHanKotlin? = null
            get() {
                if(field == null) {
                    field = ThreadSafeLanHanKotlin()
                }
                return instance
            }

        @Synchronized
        fun get(): ThreadSafeLanHanKotlin {
            return instance!!
        }
    }
}